<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatGameNcdhPayLogTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('game_ncdh_pay_log', function (Blueprint $table) {
            $table->increments('id')->comment('农场大亨支付日志表');
            $table->integer('user_id')->unsigned()->comment('用户ID');
            $table->decimal('from_XYB', 10, 2)->default('0.00')->comment('小妖币原始值');
            $table->decimal('add_XYB', 10, 2)->default('0.00')->comment('小妖币增加值');
            $table->decimal('to_XYB', 10, 2)->default('0.00')->comment('小妖币最终值');
            $table->integer('issue')->unsigned()->comment('期号');
            $table->integer('order_id')->unsigned()->comment('下单id');
            $table->integer('add_time')->unsigned()->default(0)->unsigned()->comment('创建时间');
            $table->integer('update_time')->unsigned()->default(0)->unsigned()->comment('更新时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
